package com.aegean.MonitorExamSYS.monitor.action;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.aegean.MonitorExamSYS.center.business.CenterBusiness;
import com.aegean.MonitorExamSYS.examinee.business.ExamineeBusiness;
import com.aegean.MonitorExamSYS.monitor.business.MonitorBusiness;
import com.aegean.MonitorExaxSYS.model.BigType;
import com.aegean.MonitorExaxSYS.model.ConductionValue;
import com.aegean.MonitorExaxSYS.model.SmallType;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.util.ValueStack;

@Controller("NavigationMonitorRegister")
@Scope("prototype")
public class NavigationMonitorRegister extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3701936094628261070L;
	@Resource
	MonitorBusiness business;
	private List<ConductionValue> units = new ArrayList<ConductionValue>();
    private List<BigType> bigs;
	public List<BigType> getBigs() {
		return bigs;
	}

	public void setBigs(List<BigType> bigs) {
		this.bigs = bigs;
	}

	public List<ConductionValue> getUnits() {
		return units;
	}

	public void setUnits(List<ConductionValue> units) {
		this.units = units;
	}
    
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		units = business.showUnitList();
		bigs=business.showBigsList();
		return SUCCESS;
	}

}
